package com.joysuch.wwyt.bp.entity.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zero
 * @since 2021/12/9 10:43
 */
@Data
public class AlarmMessageBean {
    
    private Long id;
    
    @ApiModelProperty()
    private String uniqueId;

    @ApiModelProperty(value = "外键id")
    private Long refId;
    
    @ApiModelProperty(value = "报警类型")
    private Integer alarmType;

    @ApiModelProperty(value = "报警类型名称")
    private String alarmTypeName;

    @ApiModelProperty(value = "AI报警子类型")
    private Integer subType;

    @ApiModelProperty(value = "Al报警子类型名称")
    private String subTypeName;

    @ApiModelProperty(value = "报警信息")
    private String alarmInfo;

    @ApiModelProperty(value = "报警时间")
    private Long alarmTime;

    @ApiModelProperty(value = "人员工号")
    private String userCode;

    @ApiModelProperty(value = "报警位置")
    private String alarmLocation;

    @ApiModelProperty(value = "围栏信息")
    private String rails;

    @ApiModelProperty(value = "base64图片编码")
    private String alarmPicData;
    
    @ApiModelProperty(value = "报警图片ID")
    private Long alarmPicId;

    @ApiModelProperty(value = " 摄像头对应拉流地址/rtsp")
    private String cameraUrl;

    @ApiModelProperty(value = "摄像头名称")
    private String cameraName;
    
    @ApiModelProperty(value = "报警状态(1:未处理 0:已处理)")
    private Integer status;

    private String handlerBy;

    @ApiModelProperty(value = "处理信息")
    private String handleInfo;

    @ApiModelProperty(value = "处理时间")
    private Date handleTime;

    private Long tenentId;

    private String orgCode;

    @Override
    public String toString() {
        return "AlarmMessageBean{" +
                "id=" + id +
                ", uniqueId='" + uniqueId + '\'' +
                ", refId=" + refId +
                ", alarmType=" + alarmType +
                ", alarmTypeName='" + alarmTypeName + '\'' +
                ", subType=" + subType +
                ", subTypeName='" + subTypeName + '\'' +
                ", alarmInfo='" + alarmInfo + '\'' +
                ", alarmTime=" + alarmTime +
                ", userCode='" + userCode + '\'' +
                ", alarmLocation='" + alarmLocation + '\'' +
                ", rails='" + rails + '\'' +
                ", alarmPicId=" + alarmPicId +
                ", cameraUrl='" + cameraUrl + '\'' +
                ", cameraName='" + cameraName + '\'' +
                ", status=" + status +
                ", handlerBy='" + handlerBy + '\'' +
                ", handleInfo='" + handleInfo + '\'' +
                ", handleTime=" + handleTime +
                ", tenentId=" + tenentId +
                ", orgCode='" + orgCode + '\'' +
                '}';
    }
}
